package com.ljd.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljd.common.utils.PageUtils;
import com.ljd.gulimall.product.entity.AttrEntity;
import com.ljd.gulimall.product.vo.Attr;
import com.ljd.gulimall.product.vo.AttrRespVo;
import com.ljd.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author ljd
 * @email 2381773911@qq.com
 * @date 2023-02-06 17:20:05
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils baseQueryPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttr(Long attrId);

    void updateAttr(AttrVo attr);

    List<Attr> getSearchTypeAttr(List<Long> attrIds);
}

